Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilterOptions: replace new Event() with DOM.trigger() #1058

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

oshi97
Copy link
Contributor

@oshi97 oshi97 commented Sep 2, 2020

The event constructor does not work in ie11, but we have an
ie11 compliant implementation with DOM.trigger()

T=https://yextops.zendesk.com/agent/tickets/348126
TEST=manual

Test that before, in browserstack ie11,
clicking the X button in a searchable facet has console error

With code change, no console error

and that it still clears the facet search input on chrome + ie11

The event constructor does not work in ie11, but we have an
ie11 compliant implementation with DOM.trigger()

T=https://yextops.zendesk.com/agent/tickets/348126
TEST=manual

Test that before, in browserstack ie11,
 clicking the X button in a searchable facet has console error

With code change, no console error
'bubbles': true,
'cancelable': true
}));
DOM.trigger(searchInputEl, 'input');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to include any of the event settings in the call to DOM.trigger? Or do the defaults in _customEvent get us what we need?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes the defaults are the same

@tmeyer2115 tmeyer2115 self-requested a review September 2, 2020 16:03
@oshi97 oshi97 merged commit 24c08e4 into support/v1.4 Sep 2, 2020
@oshi97 oshi97 deleted the ie11-event-constructor-1.4 branch September 2, 2020 16:04
oshi97 added a commit that referenced this pull request Sep 2, 2020
The event constructor does not work in ie11, but we have an
ie11 compliant implementation with DOM.trigger()

T=https://yextops.zendesk.com/agent/tickets/348126
TEST=manual

Test that before, in browserstack ie11,
 clicking the X button in a searchable facet has console error

With code change, no console error

and that it still clears the facet search input on chrome + ie11
@creotutar
Copy link
Contributor

Heya heads up, for some reason this PR didn't run npm test
Fixing it in my PR #1060

@oshi97
Copy link
Contributor Author

oshi97 commented Sep 3, 2020

Heya heads up, for some reason this PR didn't run npm test
Fixing it in my PR #1060

Oh shoot, thanks Christian. I didn't realize our ci didn't run (looks like there were some organization changes? I can't open project settings anymore)

oshi97 added a commit that referenced this pull request Sep 3, 2020
The event constructor does not work in ie11, but we have an
ie11 compliant implementation with DOM.trigger()

T=https://yextops.zendesk.com/agent/tickets/348126
TEST=manual

Test that before, in browserstack ie11,
 clicking the X button in a searchable facet has console error

With code change, no console error

and that it still clears the facet search input on chrome + ie11
oshi97 added a commit that referenced this pull request Sep 4, 2020
The event constructor does not work in ie11, but we have an
ie11 compliant implementation with DOM.trigger()

T=https://yextops.zendesk.com/agent/tickets/348126
TEST=manual

Test that before, in browserstack ie11,
 clicking the X button in a searchable facet has console error

With code change, no console error

and that it still clears the facet search input on chrome + ie11
oshi97 added a commit that referenced this pull request Sep 9, 2020
The event constructor does not work in ie11, but we have an
ie11 compliant implementation with DOM.trigger()

T=https://yextops.zendesk.com/agent/tickets/348126
TEST=manual

Test that before, in browserstack ie11,
 clicking the X button in a searchable facet has console error

With code change, no console error

and that it still clears the facet search input on chrome + ie11
@oshi97 oshi97 mentioned this pull request Oct 1, 2020
oshi97 added a commit that referenced this pull request Oct 1, 2020
## Fixes:
* Remove unsafe eval usages in a search bar only page (#1062)
* Pagination: Fix disappearing pagination on back nav and refresh (#1060)
* FilterOptions: fix ie11 issue with clearing searchable facets (#1058)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants